<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 100px;
      height: 100px;

      /* border: width style color; */
      /* border: 1px solid black; */

      /* 单方向 border */
      border-top: 1px solid red;
      border-bottom: 1px solid orange;
      border-left: 1px solid yellow;
      border-right: 1px solid green;
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>